import { LIST_NAV, TUIJIAN_LIST, LOOP_LIST } from '../content'
/*  listNav: res.data.data[2].configureAttribute,
            tuijianList: res1.data.data[10].configureAttributeList,
            headerLooplist: res1.data.data[1].configureAttribute */
const initData = {}
const wzdata = (state = initData, action) => {
    const { type, data } = action
    switch (type) {
        case LIST_NAV:
            return Object.assign({}, state, { listNav: data })
        case TUIJIAN_LIST:
            return Object.assign({}, state, { tuijianList: data })
        case LOOP_LIST:
            return Object.assign({}, state, { headerLooplist: data })
        default:
            return state
    }
}
export default wzdata